package main
import "fmt"
func main(){
	var a int
	var b int
	var he int
	a = 5
	b = 7
	fmt.Println("5, 7, he指针变量作为函数参数：")
	sum(a, b, &he)
	fmt.Printf("he = %d\n", he)
	
	
	fmt.Println("8, 8, he普通变量作为函数参数：")
	jisuan(8, 8, he)
	fmt.Printf("he = %d\n", he)
}

func sum(a int, b int, he *int){
	*he = a + b
}

func jisuan(a int, b int, he int){
	he = a + b
}
